<script language="javascript" runat="server">

// include file for caching application wide data

function cacheExceptions()
{
	var objXML = Server.CreateObject("MSXML2.FreeThreadedDOMDocument"); // loads the latest version
	objXML.load(Server.MapPath("/WebCATI/exceptions.xml"));
	Application("exceptionData") = objXML;
	objXML = null;
}

function cacheSurveys()
{
	var objXML = Server.CreateObject("MSXML2.FreeThreadedDOMDocument"); // loads the latest version
	objXML.load(Server.MapPath("/WebCATI/surveys.xml"));
	Application("surveyData") = objXML;
	objXML = null;
}

function cacheClients()
{
	var objXML = Server.CreateObject("MSXML2.FreeThreadedDOMDocument"); // loads the latest version
	objXML.load(Server.MapPath("/WebCATI/clients.xml"));
	Application("clientData") = objXML;
	objXML = null;
}

function cacheParameters()
{
	var objXML = Server.CreateObject("MSXML2.FreeThreadedDOMDocument"); // loads the latest version
	objXML.load(Server.MapPath("/WebCATI/parameters.xml"));
	Application("parameterData") = objXML;
	objXML = null;
}


</script>